import request from '@/utils/request'

// 查询退货申请列表
export function listRta(query) {
  return request({
    url: '/procure/rta/list',
    method: 'get',
    params: query
  })
}

// 查询退货申请详细
export function getRta(rtaId) {
  return request({
    url: '/procure/rta/' + rtaId,
    method: 'get'
  })
}

// 新增退货申请
export function addRta(data) {
  return request({
    url: '/procure/rta',
    method: 'post',
    data: data
  })
}

// 修改退货申请
export function updateRta(data) {
  return request({
    url: '/procure/rta',
    method: 'put',
    data: data
  })
}

// 删除退货申请
export function delRta(rtaId) {
  return request({
    url: '/procure/rta/' + rtaId,
    method: 'delete'
  })
}
